@extends('layouts.atr')
@section('content')

    <form class="form-horizontal" method="post" action="/doUpdate">
        {{csrf_field()}}
        {{--//{{ method_field('PATCH') }}--}}
        <input type="hidden" name="id" value="{{$art->id}}">
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">标题</label>
            <div class="col-sm-8">
                <input type="text" class="form-control" id="title" name="title" placeholder="{{$art->title}}">
            </div>
        </div>


        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">内容</label>
            <div class="col-sm-8">
                <textarea class="form-control" rows="5" id="content" name="content" placeholder="{{$art->content}}"></textarea>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">修改</button>
            </div>
        </div>
    </form>
@endsection